from tools.screen_recorder import run as run__screen_recorder, ScreenRecorder
from bdtime import Time
import threading


def main():
    save_file_name = 'test.json'
    screen_video_dir_name = 'test_7'
    screen_video_dir_name = screen_video_dir_name if screen_video_dir_name else save_file_name

    tt = Time()
    screen_recorder = ScreenRecorder(tt=tt, save_file_name=screen_video_dir_name)

    # km_kwargs = {
    #     'screen_recorder': screen_recorder,
    # }
    # task_screen_recorder = threading.Thread(target=run__screen_recorder, kwargs=km_kwargs)
    # task_screen_recorder.start()

    # run__screen_recorder(screen_recorder=screen_recorder)


if __name__ == '__main__':
    main()






